﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PCS_Linh.lab02
{
    class Giaithua
    {
        public void run()
        {
            Console.WriteLine("Welcome to factorial!");
            int n = Convert.ToInt32(Console.ReadLine());
            int s = 1;
            for (int i = 1; i <= n; i++)
            {
                s = s * i;
            }
            Console.WriteLine("{0}! is: {1}", n, s);
            Console.ReadLine();
        }
    }
}
